package com.Lacia.emsserver.config;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Albert Chen
 */
@Slf4j
@Getter
@Setter
@Configuration
@ConfigurationProperties(prefix = "mqtt")
public class MqttConfig {

    private String host;
    private Integer port;
    private String username;
    private String password;
    private String clientIdPrefix;
    private Integer qos;
    /** 连接超时时间，单位秒 */
    private Integer connectionTimeout = 30;

}
